<template>
  <div>

    <a-button type="primary" @click="navgation">跳转</a-button>

  </div>
</template>

<script lang="ts">
import { defineComponent} from 'vue'
import { useRouter } from "vue-router";


export default defineComponent({
  name: 'Page',
  setup() {
    const router = useRouter();

    const navgation = () => {
      // 跳转到首页
      router.push({ path: "/course" })
    }

    return {
      navgation
    }
  }
})
</script>

<style lang="scss" scoped>

</style>